﻿using System;
using System.IO;

namespace Calimbra.Addin.Functions
{
    public class Read_rows
    {
        public Action EOF;
        public Action<string> NextRow;

        public void Process(FileInfo file)
        {
            foreach (string line in File.ReadLines(file.FullName))
            {
                NextRow(line);
            }
            EOF();
        }
    }
}